/**
 * 全局注入组件
 */
import Vue from 'vue'
import { Breadcrumb, Menu, MenuItem, Submenu } from 'element-ui'

const plugins = [Breadcrumb, Menu, MenuItem, Submenu]

export const elePlugins = {
  install: () => {
    plugins.forEach(item => {
      Vue.component(item.name, item)
    })
  }
}
